//
//  TCVideoMessageBody.m
//  GIM
//
//  Created by keen on 15/5/5.
//  Copyright (c) 2015年 keen. All rights reserved.
//

#import "TCVideoMessageBody.h"

@implementation TCVideoMessageBody

- (void)updateWithJsonDic:(NSDictionary *)dic {
    [super updateWithJsonDic:dic];
    if (isInitSuccuss) {
        self.videoUrl  = [dic getStringValueForKey:@"url"  defaultValue:nil];
        self.videoTime = [dic getIntValueForKey:   @"time" defaultValue:0];

        self.imgUrl    = [dic getStringValueForKey:@"urlsmall" defaultValue:nil];
        self.imgWidth  = [dic getIntValueForKey:   @"width"    defaultValue:0];
        self.imgHeight = [dic getIntValueForKey:   @"height"   defaultValue:0];
    }
}

@end
